#!/usr/bin/node

const log = console.log;

log(`architecture:${process.arch}`);
log(`platform:    ${process.platform}\n`);

log(`process id:  ${process.pid}`);
log(`execPath:    ${process.execPath}\n`);

//在脚本中让程序停止执行
process.stdin.pause();

log(`nodejs version: ${process.version}`);
log(`user id:        ${process.getuid()}`);
log(`group id:       ${process.getgid()}`);
log(`cwd:            ${process.cwd()}\n`);

log(`rss:      ${process.memoryUsage().rss}`);
log(`heapTotal:${process.memoryUsage().heapTotal}`);
log(`heapUsed :${process.memoryUsage().heapUsed}`);
log(`external: ${process.memoryUsage().external}`);

log('env:', process.env);
log(`Host name: ${process.env.HOSTNAME}`);
